from django.urls import path
from . import views

app_name = 'common'

urlpatterns = [
    # Excel管理主页
    path('excel/', views.excel_management, name='excel_management'),
    
    # 导出功能
    path('export/projects/', views.export_projects_excel, name='export_projects'),
    path('export/subprojects/', views.export_subprojects_excel, name='export_subprojects'),
    
    # 模板下载
    path('template/projects/', views.download_project_template, name='project_template'),
    path('template/subprojects/', views.download_subproject_template, name='subproject_template'),
    
    # 导入页面
    path('import/projects/', views.import_projects_page, name='import_projects_page'),
    path('import/subprojects/', views.import_subprojects_page, name='import_subprojects_page'),
    
    # 导入处理
    path('import/projects/upload/', views.import_projects_excel, name='import_projects'),
    path('import/subprojects/upload/', views.import_subprojects_excel, name='import_subprojects'),
]